"""
Test (some aspects of) the public API of the commands module.
"""

import twilltestlib
from twill import commands as tc

def test_showforms_gives_list():
    url = twilltestlib.get_url()
    tc.go(url)

    tc.go('/simpleform')
    r = tc.showforms()
    assert isinstance(r, list), "showforms should return a list"

def test_showlinks_gives_list():
    url = twilltestlib.get_url()
    tc.go(url)

    r = tc.showlinks()
    assert isinstance(r, list), "showlinks should return a list"
